package com.edu.dreams.mapper;

import com.edu.dreams.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface UserMapper {
    User userlogin(@Param("us") String username, @Param("up") String userpassword);

    int userregister(@Param("us") String username, @Param("up") String userpassword);

    int updateUser(@Param("user") User user);

    User getUserInfoById(@Param("id") int id);
}
